﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcMall.Core.Commands;
using MvcMall.Core.Domains;
using MvcMall.Framework.MvcPager;

namespace MvcMall.Core.Contacts.Tasks
{
    public interface IArticleTask
    {
        Article Save(ArticleCommand cmd);

        Article Get(int articleId);

        List<Article> GetAll();

        PagedList<Article> GetPagedList(int pageIndex, int pageSize, int catId, string title);

        PagedList<Article> GetPagedList(int pageIndex, int pageSize);
    }
}
